﻿<UserControl 
           x:Class="Rio.Application.RioWeb.Flow.Controls.DisplayPage"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"      
           xmlns:ToolKit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
           xmlns:CustomControls="clr-namespace:Rio.Framework.Pages;assembly=Rio.Framework.Pages"
            xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls" OpacityMask="White">
    
    <UserControl.Resources>
        <Style x:Key="LayoutRootGridStyleMenu"
               TargetType="Grid">
            <Setter Property="Background"
                    Value="{StaticResource NavigationBackgroundColorBrush}" />
        </Style>

        <LinearGradientBrush x:Key="NavigationBackgroundColorBrush"
                             EndPoint="0.5,1"
                             StartPoint="0.5,0">
            <GradientStop Color="#FF294890"
                          Offset="0.022" />
            <GradientStop Color="#499ED5"
                          Offset="0.536" />
            <GradientStop Color="#FF255D96"
                          Offset="0.728" />
        </LinearGradientBrush>
    </UserControl.Resources>
    
  <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition MaxHeight="40" />
            <RowDefinition MaxHeight="70" />
            <RowDefinition />
        </Grid.RowDefinitions>

        <!--Menu-->      
        <Grid Grid.Row="0" Style="{StaticResource LayoutRootGridStyleMenu}" > 
           
            <ToolKit:WrapPanel>
                <!--<Button Name="buttonRepondre" Height="30" HorizontalAlignment="Right" Margin="5,5,5,0" VerticalAlignment="Top" Width="100" />-->
                <Button Name="buttonValider" Height="30" HorizontalAlignment="Right" Margin="5,5,5,0" VerticalAlignment="Top" Width="100" Click="buttonValider_Click" />
                <Button Name="buttonRefuser" Height="30" HorizontalAlignment="Right" Margin="5,5,5,0" VerticalAlignment="Top" Width="100" Click="buttonRefuser_Click" />
                <Button Name="buttonTransferer" Height="30" HorizontalAlignment="Right" Margin="5,5,5,0" VerticalAlignment="Top" Width="100" Click="buttonTransferer_Click" />
                <Button Name="buttonRelancer" Height="30" HorizontalAlignment="Right" Margin="5,5,5,0" VerticalAlignment="Top" Width="100" Click="buttonRelancer_Click" />
                <!--<Button Name="buttonNumeriser" Height="30" HorizontalAlignment="Right" Margin="5,5,5,0" VerticalAlignment="Top" Width="100" />-->
                <Button Name="buttonIndexer" Height="30" HorizontalAlignment="Right" Margin="5,5,5,0" VerticalAlignment="Top" Width="100" Click="buttonIndexer_Click" />
                <!--<Button Name="buttonArchiver" Height="30" HorizontalAlignment="Right" Margin="5,5,5,0" VerticalAlignment="Top" Width="100"/>-->
                <!--<Button Name="buttonSupprimer" Height="30" HorizontalAlignment="Right" Margin="5,5,5,0" VerticalAlignment="Top" Width="100" />-->
               
            </ToolKit:WrapPanel>
        </Grid>

        <!-- Header Message -->
        <Border BorderBrush="Black" BorderThickness="1" Grid.Row="1">
            <Grid x:Name="HeaderMessage" Background="White">
                <Grid.RowDefinitions>
                    <RowDefinition MinHeight="20"/>
                    <RowDefinition MinHeight="20"/>
                    <RowDefinition MinHeight="20"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition MaxWidth="60"/>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>

                <dataInput:Label Name="LabelFrom"   Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,2,0,0" />
                <dataInput:Label Name="LabelObject" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="1" Margin="5,2,0,0" />
                <dataInput:Label Name="LabelTo"     Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="2" Margin="5,2,0,0" />

                <TextBlock Name="LabelValueFrom" Grid.Column="1" Grid.Row="0" VerticalAlignment="Top" Text="{Binding sFrom}" Margin="0,2,0,0" TextWrapping="Wrap" />
                <TextBox Name="LabelValueObject" IsReadOnly="True" Grid.Column="1" Grid.Row="1" VerticalAlignment="Top" Text="{Binding sSubject}" Margin="0,0,0,0" TextWrapping="NoWrap" Background="{x:Null}" BorderBrush="{x:Null}"  />
                <TextBox Name="LabelValueTo" IsReadOnly="True"  Grid.Column="1" Grid.Row="2" VerticalAlignment="Top" Text="{Binding sTo}" Margin="0,0,0,0" TextWrapping="NoWrap" Background="{x:Null}" BorderBrush="{x:Null}"   />
                
            </Grid>
        </Border>

        <!--Document zone-->
        <Grid x:Name="DocumentGrid" Grid.Row="2" Background="White" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition MinWidth="400"/>
                <ColumnDefinition MinWidth="340" MaxWidth="340"/>
            </Grid.ColumnDefinitions>

        <Border Grid.Column="0" BorderBrush="Black" BorderThickness="1" Margin="0,5,0,0">
                <Grid Name="ViewerControlPanel"  >
                    <Grid.RowDefinitions>
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <!--<CustomControls:UCViewer Name="ViewerControl" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" InitialisationCompleted="ViewerControl_InitialisationCompleted" DisplayCompleted="ViewerControl_DisplayCompleted"/>-->
                </Grid>
            </Border>

            <Border Name="InfoGridContent" Grid.Column="1" BorderBrush="Black" BorderThickness="1" Margin="5,5,0,0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                <Grid x:Name="InfoGrid" Background="White" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="330" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition MinHeight="15" MaxHeight="20" />
                        <RowDefinition />
                        <RowDefinition MinHeight="15" MaxHeight="20"/>
                        <RowDefinition />
                        <RowDefinition MinHeight="15" MaxHeight="20"/>
                        <RowDefinition />                        
                    </Grid.RowDefinitions>

                    <dataInput:Label Name="LabelStateHistory" Grid.Row="0" Width="300" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,0,0"  />
                    <ScrollViewer Background="#EEEEEE"  BorderBrush="Black" BorderThickness="1" Grid.Row="1" VerticalScrollBarVisibility="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  >
                        <TextBlock Name="StateHistory" TextWrapping="Wrap" />
                    </ScrollViewer>
                    <dataInput:Label Name="LabelIndex" Grid.Row="2"   Width="300" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,0,0"   />
                    <ScrollViewer Background="#EEEEEE" BorderBrush="Black" BorderThickness="1" Grid.Row="3" VerticalScrollBarVisibility="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  >
                        <TextBlock Name="DocumentIndex" TextWrapping="Wrap" />
                    </ScrollViewer>
                     <dataInput:Label Name="LabelMemo" Grid.Row="4"  Width="300" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,0,0"  />
                    <ScrollViewer Background="#EEEEEE" BorderBrush="Black" BorderThickness="1" Grid.Row="5" VerticalScrollBarVisibility="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  >
                        <TextBlock Name="FlowMemo" TextWrapping="Wrap" />
                    </ScrollViewer>
                </Grid>
               
            </Border>

        </Grid>

        <!--<telerik:RadExpander Grid.RowSpan="3" IsExpanded="False" ExpandDirection="Left" HorizontalAlignment="Left" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Right" animation:AnimationManager.IsAnimationEnabled="True">
            <telerik:RadExpander.Header>
                <TextBlock x:Name="ExpanderCaption" Visibility="Visible" TextWrapping="Wrap" Width="35" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            </telerik:RadExpander.Header>
            <telerik:RadExpander.Content>
                <UC:IndexingPanel x:Name="IndexingPanelUC" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Top" />
            </telerik:RadExpander.Content>
        </telerik:RadExpander>-->
    </Grid>
</UserControl>